<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+request.getContextPath()+"/";
%>
<html>
<head>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="pragma" content="no-cache"> 
<meta http-equiv="cache-control" content="no-cache"> 
<meta http-equiv="expires" content="0"> 
<meta http-equiv="Content-Type" content="text/json; charset=UTF-8"> 
<title>山东天易工程管理系统</title>
<link rel="shortcut icon" href="/favicon.ico" />
<link rel="home" href="./" />
<link href="css/style.css" rel="stylesheet" type="text/css" />
<script src="scripts/util.js" type="text/javascript" charset="utf-8" ></script>
<script src="scripts/login.js" type="text/javascript" charset="utf-8" ></script>
<style type="text/css">
#username,#userpass,#savepass {  
	border:#999 1px solid;
	height:20px;
	background-color:#e8f4ff;  
}
</style>
</head>
 <body onkeydown='submitLogin();'>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="109" height="8" background="images/login_01.gif"><img src="images/spacer.gif" width="1" height="1"></td>
    <td width="794"><img src="images/spacer.gif" width="1" height="1"></td>
    <td background="images/login_01.gif"><img src="images/spacer.gif" width="1" height="1"></td>
  </tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0" background="images/login_03.gif">
  <tr>
    <td width="109" height="97">&nbsp;</td>
    <td width="300" valign="top"><img src="images/login_05.gif" width="291" height="71"></td>
    <td width="494" align="right" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height="11"><img src="images/spacer.gif" width="1" height="1"></td>
        </tr>
      <tr>
        <td align="right"><a href="#"><img src="images/login_08.gif" width="71" height="17" border="0"></a></td>
        </tr>
    </table></td>
    <td>&nbsp;</td>
  </tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="109" height="10"><img src="images/spacer.gif" width="1" height="1"></td>
    <td><img src="images/spacer.gif" width="1" height="1"></td>
    <td width="281"><img src="images/spacer.gif" width="1" height="1"></td>
    <td><img src="images/spacer.gif" width="1" height="1"></td>
    <td><img src="images/spacer.gif" width="1" height="1"></td>
    <td bgcolor="#92BBD7"><img src="images/spacer.gif" width="1" height="1"></td>
  </tr>
  <tr>
    <td><img src="images/login_13.gif" width="109" height="181"></td>
    <td width="10"><img src="images/spacer.gif" width="1" height="1"></td>
    <td><img src="images/login_15.jpg" width="281" height="181"></td>
    <td width="493" align="center" background="images/login_16.jpg">
    <form id="loginform" action="TbUsersServlet?method=login" method="post">
    <table width="90%" border="0" cellspacing="5" cellpadding="0">
      <tr>
        <td  align="right" class="F02">用户名：</td>
        <td align="left" >
        <input type="text" id="username" name="username" size="20" value=""/>
        </td>
      </tr>
      <tr>
        <td   align="right" class="F02">密　码：</td>
        <td align="left"><input type="password" id="userpass" name="userpass" size="22" value=""/>
          <button onclick='checkLogin();' class="buttonface">&nbsp;&nbsp;&nbsp;登&nbsp;&nbsp; 录&nbsp; </button>
          </td>
      </tr>
      <tr>
	  
        <td>&nbsp;</td>
        <td class="F02" align="left">
           <input type="checkbox" name="savepass" id="savepass" value="checkbox">
            记住密码</td>
      </tr>
    </table>
     </form>
    </td>
    <td width="10"><img src="images/spacer.gif" width="1" height="1"></td>
    <td><img src="images/login_18.gif" width="100" height="181"></td>
  </tr>
  <tr>
    <td height="10"><img src="images/spacer.gif" width="1" height="1"></td>
    <td><img src="images/spacer.gif" width="1" height="1"></td>
    <td><img src="images/spacer.gif" width="1" height="1"></td>
    <td><img src="images/spacer.gif" width="1" height="1"></td>
    <td><img src="images/spacer.gif" width="1" height="1"></td>
    <td><img src="images/login_21.gif" width="100" height="10"></td>
  </tr>
</table>
<form name="form1" method="post" action="">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="109" height="93" background="images/login_22.gif">&nbsp;</td>
    <td width="291" valign="bottom" background="images/login_22.gif"><img src="images/login_40.gif" width="291" height="68"></td>
    <td align="right" valign="top" background="images/login_22.gif"></td>
    </tr>
  <tr>
    <td height="100" class="td02">&nbsp;</td>
    <td class="td02">&nbsp;</td>
    <td class="td02">&nbsp;</td>
    </tr>
     <c:if test="${param.err!=null}">
       <div class="notice" align="center">
                      用户名或密码错误，登录失败。
        </div>
    </c:if>
</table>
<script type="text/javascript">document.getElementById("username").focus();</script>
</form>
</body>
</html>
